package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class Equip {
    private String name;          // 名称
    private int level;            // 级别
    private String color;         // 颜色
    private String kind;          // 类别
    private int attack;           // 攻击力
    private int defence;
      public  String show() {
          return String.format("装备信息:\n名称: %s\n级别: %d\n颜色: %s\n类别: %s\n攻击力: %d\n防御力: %d",
                  name, level, color, kind, attack, defence);
      }

}
